package state.Money;

/**
 * @ProjectName: interview
 * @Package: state.Money
 * @ClassName: PublishState
 * @Author: chenmengqi
 * @Description: null
 * @Date: 2020/1/14 8:17 下午
 * @Version: 1.0
 */
public class PublishState extends AbstractState {
    @Override
    public void acceptOrderEvent(Context context) {
        //把当前状态设置为  NotPayState。。。
        //至于应该变成哪个状态，有流程图来决定
        context.setState(new NotPayState());
    }

    @Override
    public void notPeopleAcceptEvent(Context context) {
        context.setState(new FeedBackState());
    }

    @Override
    public String getCurrentState() {
        return StateEnum.PUBLISHED.getValue();
    }
}
